.class public Lcom/xingbook/ui/t;
.super Landroid/view/ViewGroup;


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "ViewConstructor"
    }
.end annotation


# static fields
.field public static a:I

.field public static b:I

.field private static l:Landroid/graphics/Bitmap;

.field private static m:Landroid/graphics/Paint;


# instance fields
.field public c:Ljava/lang/String;

.field public d:Ljava/lang/String;

.field public e:Landroid/graphics/Bitmap;

.field public f:Z

.field public g:Z

.field public h:I

.field public i:I

.field public j:Z

.field public k:Z

.field private n:I

.field private o:Landroid/app/Activity;

.field private p:Lcom/xingbook/ui/x;

.field private q:Lcom/xingbook/ui/u;

.field private r:Lcom/xingbook/ui/w;

.field private s:I

.field private t:I

.field private u:I

.field private v:Z

.field private w:Landroid/graphics/Matrix;

.field private x:Landroid/graphics/Rect;

.field private y:Landroid/graphics/PointF;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    const/4 v0, 0x0

    sput-object v0, Lcom/xingbook/ui/t;->l:Landroid/graphics/Bitmap;

    sput-object v0, Lcom/xingbook/ui/t;->m:Landroid/graphics/Paint;

    const/4 v0, 0x0

    sput v0, Lcom/xingbook/ui/t;->b:I

    return-void
.end method

.method public constructor <init>(Landroid/app/Activity;Lcom/xingbook/ui/x;)V
    .locals 5

    const/4 v0, 0x0

    const/4 v4, 0x1

    const/4 v3, -0x1

    const/4 v1, 0x0

    invoke-direct {p0, p1}, Landroid/view/ViewGroup;-><init>(Landroid/content/Context;)V

    iput v3, p0, Lcom/xingbook/ui/t;->n:I

    iput-object v0, p0, Lcom/xingbook/ui/t;->d:Ljava/lang/String;

    iput-object v0, p0, Lcom/xingbook/ui/t;->e:Landroid/graphics/Bitmap;

    iput-boolean v4, p0, Lcom/xingbook/ui/t;->f:Z

    iput-boolean v1, p0, Lcom/xingbook/ui/t;->g:Z

    iput v1, p0, Lcom/xingbook/ui/t;->h:I

    const/16 v0, -0x66d6

    iput v0, p0, Lcom/xingbook/ui/t;->i:I

    iput v1, p0, Lcom/xingbook/ui/t;->u:I

    iput-boolean v1, p0, Lcom/xingbook/ui/t;->j:Z

    iput-boolean v1, p0, Lcom/xingbook/ui/t;->k:Z

    iput-boolean v1, p0, Lcom/xingbook/ui/t;->v:Z

    iput-object p1, p0, Lcom/xingbook/ui/t;->o:Landroid/app/Activity;

    iput-object p2, p0, Lcom/xingbook/ui/t;->p:Lcom/xingbook/ui/x;

    sget-object v0, Lcom/xingbook/ui/t;->l:Landroid/graphics/Bitmap;

    if-nez v0, :cond_0

    iget-boolean v0, p0, Lcom/xingbook/ui/t;->f:Z

    if-eqz v0, :cond_0

    invoke-static {p1}, Lcom/xingbook/c/n;->f(Landroid/app/Activity;)F

    move-result v0

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    const v2, 0x7f0202a7

    invoke-static {v1, v2}, Lcom/xingbook/c/n;->a(Landroid/content/res/Resources;I)Landroid/graphics/Bitmap;

    move-result-object v1

    sput-object v1, Lcom/xingbook/ui/t;->l:Landroid/graphics/Bitmap;

    const/high16 v1, 0x42c0

    mul-float/2addr v1, v0

    invoke-static {v1}, Ljava/lang/Math;->round(F)I

    move-result v1

    sput v1, Lcom/xingbook/ui/t;->a:I

    const/high16 v1, 0x42dc

    mul-float/2addr v0, v1

    invoke-static {v0}, Ljava/lang/Math;->round(F)I

    move-result v0

    sput v0, Lcom/xingbook/ui/t;->b:I

    :cond_0
    sget-object v0, Lcom/xingbook/ui/t;->m:Landroid/graphics/Paint;

    if-nez v0, :cond_1

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    sput-object v0, Lcom/xingbook/ui/t;->m:Landroid/graphics/Paint;

    sget-object v0, Lcom/xingbook/ui/t;->m:Landroid/graphics/Paint;

    invoke-virtual {v0, v4}, Landroid/graphics/Paint;->setFlags(I)V

    sget-object v0, Lcom/xingbook/ui/t;->m:Landroid/graphics/Paint;

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setColor(I)V

    sget-object v0, Lcom/xingbook/ui/t;->m:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Align;->LEFT:Landroid/graphics/Paint$Align;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTextAlign(Landroid/graphics/Paint$Align;)V

    :cond_1
    new-instance v0, Lcom/xingbook/ui/u;

    invoke-direct {v0, p0, p1}, Lcom/xingbook/ui/u;-><init>(Lcom/xingbook/ui/t;Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/ui/t;->q:Lcom/xingbook/ui/u;

    new-instance v0, Lcom/xingbook/ui/w;

    invoke-direct {v0, p0, p1}, Lcom/xingbook/ui/w;-><init>(Lcom/xingbook/ui/t;Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/xingbook/ui/t;->r:Lcom/xingbook/ui/w;

    iget-object v0, p0, Lcom/xingbook/ui/t;->q:Lcom/xingbook/ui/u;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/t;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/ui/t;->r:Lcom/xingbook/ui/w;

    invoke-virtual {p0, v0}, Lcom/xingbook/ui/t;->addView(Landroid/view/View;)V

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/t;)Landroid/app/Activity;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->o:Landroid/app/Activity;

    return-object v0
.end method

.method static synthetic a()Landroid/graphics/Paint;
    .locals 1

    sget-object v0, Lcom/xingbook/ui/t;->m:Landroid/graphics/Paint;

    return-object v0
.end method

.method static synthetic a(Lcom/xingbook/ui/t;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/t;->s:I

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/t;Landroid/graphics/Matrix;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/t;->w:Landroid/graphics/Matrix;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/t;Landroid/graphics/PointF;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/t;->y:Landroid/graphics/PointF;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/t;Landroid/graphics/Rect;)V
    .locals 0

    iput-object p1, p0, Lcom/xingbook/ui/t;->x:Landroid/graphics/Rect;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ui/t;Z)V
    .locals 0

    iput-boolean p1, p0, Lcom/xingbook/ui/t;->v:Z

    return-void
.end method

.method static synthetic b(Lcom/xingbook/ui/t;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/t;->u:I

    return v0
.end method

.method static synthetic b()Landroid/graphics/Bitmap;
    .locals 1

    sget-object v0, Lcom/xingbook/ui/t;->l:Landroid/graphics/Bitmap;

    return-object v0
.end method

.method static synthetic b(Lcom/xingbook/ui/t;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/t;->n:I

    return-void
.end method

.method static synthetic c(Lcom/xingbook/ui/t;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/t;->n:I

    return v0
.end method

.method static synthetic c(Lcom/xingbook/ui/t;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/t;->t:I

    return-void
.end method

.method private declared-synchronized c()Z
    .locals 1

    monitor-enter p0

    :try_start_0
    iget-boolean v0, p0, Lcom/xingbook/ui/t;->v:Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    monitor-exit p0

    return v0

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method static synthetic d(Lcom/xingbook/ui/t;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/t;->s:I

    return v0
.end method

.method static synthetic d(Lcom/xingbook/ui/t;I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/t;->u:I

    return-void
.end method

.method static synthetic e(Lcom/xingbook/ui/t;)Landroid/graphics/Matrix;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->w:Landroid/graphics/Matrix;

    return-object v0
.end method

.method static synthetic f(Lcom/xingbook/ui/t;)Landroid/graphics/PointF;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->y:Landroid/graphics/PointF;

    return-object v0
.end method

.method static synthetic g(Lcom/xingbook/ui/t;)I
    .locals 1

    iget v0, p0, Lcom/xingbook/ui/t;->t:I

    return v0
.end method

.method static synthetic h(Lcom/xingbook/ui/t;)Lcom/xingbook/ui/w;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->r:Lcom/xingbook/ui/w;

    return-object v0
.end method

.method static synthetic i(Lcom/xingbook/ui/t;)Lcom/xingbook/ui/x;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->p:Lcom/xingbook/ui/x;

    return-object v0
.end method

.method static synthetic j(Lcom/xingbook/ui/t;)Landroid/graphics/Rect;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->x:Landroid/graphics/Rect;

    return-object v0
.end method

.method static synthetic k(Lcom/xingbook/ui/t;)Z
    .locals 1

    invoke-direct {p0}, Lcom/xingbook/ui/t;->c()Z

    move-result v0

    return v0
.end method


# virtual methods
.method public invalidate()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->q:Lcom/xingbook/ui/u;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/t;->q:Lcom/xingbook/ui/u;

    invoke-virtual {v0}, Lcom/xingbook/ui/u;->invalidate()V

    :cond_0
    iget-object v0, p0, Lcom/xingbook/ui/t;->r:Lcom/xingbook/ui/w;

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/ui/t;->r:Lcom/xingbook/ui/w;

    invoke-virtual {v0}, Lcom/xingbook/ui/w;->invalidate()V

    :cond_1
    invoke-super {p0}, Landroid/view/ViewGroup;->invalidate()V

    return-void
.end method

.method protected onLayout(ZIIII)V
    .locals 4

    const/4 v3, 0x0

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/xingbook/ui/t;->q:Lcom/xingbook/ui/u;

    sub-int v1, p4, p2

    sub-int v2, p5, p3

    invoke-virtual {v0, v3, v3, v1, v2}, Lcom/xingbook/ui/u;->layout(IIII)V

    iget-object v0, p0, Lcom/xingbook/ui/t;->r:Lcom/xingbook/ui/w;

    sub-int v1, p4, p2

    sub-int v2, p5, p3

    invoke-virtual {v0, v3, v3, v1, v2}, Lcom/xingbook/ui/w;->layout(IIII)V

    :cond_0
    return-void
.end method

.method public postInvalidate()V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->r:Lcom/xingbook/ui/w;

    invoke-virtual {v0}, Lcom/xingbook/ui/w;->postInvalidate()V

    iget-object v0, p0, Lcom/xingbook/ui/t;->q:Lcom/xingbook/ui/u;

    invoke-virtual {v0}, Lcom/xingbook/ui/u;->postInvalidate()V

    invoke-super {p0}, Landroid/view/ViewGroup;->postInvalidate()V

    return-void
.end method

.method public setBackgroundColor(I)V
    .locals 0

    iput p1, p0, Lcom/xingbook/ui/t;->h:I

    return-void
.end method

.method public setOptionAnimating(Z)V
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ui/t;->q:Lcom/xingbook/ui/u;

    invoke-virtual {v0, p1}, Lcom/xingbook/ui/u;->a(Z)V

    return-void
.end method

.method public setTitle(Ljava/lang/String;)V
    .locals 1

    iput-object p1, p0, Lcom/xingbook/ui/t;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/xingbook/ui/t;->r:Lcom/xingbook/ui/w;

    invoke-virtual {v0}, Lcom/xingbook/ui/w;->a()V

    invoke-virtual {p0}, Lcom/xingbook/ui/t;->postInvalidate()V

    return-void
.end method
